package com.jeebey.mybatis.dialect.impl;

import com.jeebey.mybatis.dialect.IDialect;

public class MariadbDialect implements IDialect {
	public String createPagingSql(String sql, int offset, int size) {
		String _sql_format = "%s LIMIT %d,%d";
		return String.format(_sql_format, sql, offset, size);
	}

	public String createIdentitySql() {
		return "SELECT LAST_INSERT_ID()";
	}
	
	@Override
	public String createClearCacheSql() {
		return "SELECT 1";
	}
}
